package com.dao;

import com.bean.Disaster;
import com.bean.User;
import com.web.common.exception.DataAccessException;

import java.util.List;

/**
 * @Author wangzhipeng
 * @Date 2020-08-31 10:26 上午
 * @Description
 */
public interface UserDao {
    User loginByPhone(String phone, String password) throws DataAccessException;
    int registerUser(User user) throws DataAccessException;
    int uploadDisaster(Disaster disaster) throws DataAccessException;
    List<Disaster> selectMyDisaster(Integer uid) throws DataAccessException;
}
